package com.qijian.maindata.domain.query;

import com.baomidou.mybatisplus.annotation.TableName;
import com.qijian.common.utils.mybatis.WhereType;
import com.qijian.common.utils.mybatis.WhereTypeEnum;
import lombok.Data;
import lombok.ToString;

import java.math.BigDecimal;
import java.util.List;
import java.util.Set;


/**
 * 数控(锯切)件工单派单对象 查询条件类
 *
 * @author qijian
 * @date 2021-11-30
 */

@Data
@ToString
@TableName("main_nc_order_cost")
public class NcOrderCostQuery {

    @WhereType(filed = "cost_id", sort = true)
    private Long costId;
    @WhereType(filed = "order_id", type = WhereTypeEnum.IN)
    private List<Long> orderIds;
    @WhereType(filed = "order_id")
    private Long orderId;
    @WhereType(filed = "user_id")
    private Long userId;
    @WhereType(filed = "cost_hours")
    private BigDecimal costHours;
    @WhereType(filed = "cost_wages")
    private BigDecimal costWages;
    @WhereType(filed = "status")
    private Integer status;
    @WhereType(filed = "status", type = WhereTypeEnum.IN)
    private List<Integer> statusList;
    @WhereType(filed = "remark")
    private String remark;
    @WhereType(filed = "cost_id", type = WhereTypeEnum.IN)
    private Set<Long> ids;
    @WhereType(filed = "cost_id", type = WhereTypeEnum.NOTIN)
    private Set<Long> idsNot;

    @WhereType(filed = "order_code", tableName = "main_nc_order", type = WhereTypeEnum.LIKE)
    private String orderCode;
}
